package cc.linker.steplink.crm.dao;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface PersonalDao {
    String getCustomerIdByWxGlobalOpenIdAndOrgId(@Param("globalOpenid") String globalOpenid, @Param("orgId") String orgId);

    String getCustomerIdByOpenIdAndOrgId(@Param("openid") String openid, @Param("orgId") String token);

    Map<String, Object> getMissCustomerByOpenId(String openid);

    String getBindPhoneByOpenidAndToken(@Param("openid") String openid, @Param("token") String token);

    Map<String, Object> getCustomerByBindPhone(@Param("bindPhone") String bindPhone, @Param("token") String token);

    String getOrgIdByToken(@Param("token") String token, @Param("appCode") String appCode);

    Integer getPayModeByOrgId(String orgId);

    Map<String, Object> getVisitorInfo(Map<String, Object> map);

    Map<String, Object> getCustomerByAppUserId(@Param("appUserId") String appUserId, @Param("appId") String appId, @Param("source") String source);

    String getAppUrlByAppId(String appId);

    String getOrgIdByAppId(String appId);

    String getCcustomerIdByApp(@Param("appUserId") String appUserId,@Param("appId") String appId);

    Map<String, Object> getCustomerByCustomerId(@Param("customerId") String customerId);

    Map<String,Object> getCustomerInfoBySourceUserId(@Param("memberCode") String memberCode,@Param("orgId") String orgId);

    Map<String,Object> getCustomerByEquipment(@Param("appUserId") String appUserId, @Param("appId") String appId, @Param("source") String source);

    Integer getIsVipByApp(@Param("appUserId") String appUserId, @Param("appId") String appId, @Param("source") String source);

    Map<String, Object> getCustomerByPpenId(@Param("openId") String openId);

}
